This article discusses the problems related to readyState and status in Ajax, ajaxreadystate.
Let's take a look at the following code, and then introduce in detail the readyState and status issues in Ajax. The details are as follows:
Var
Differences between readyState and status of jQuery Ajax and detailed instructions for use, jqueryreadystate
In the previous articles, I analyzed ajax Asynchronization and synchronization of jquery and some exception handling. I feel that I haven't
Programmers familiar with web development must be familiar with Ajax. Now many JS frameworks have encapsulated Ajax implementations, such as jquery's Ajax functions, which are very convenient to call. Of course, this article does not describe the
Programmers who are familiar with web development must not be unfamiliar with Ajax. Now there are many JS frameworks that encapsulate Ajax implementations, such as JQuery's Ajax functions, which are very handy to call. Of course this article does
First look at the following code, and then give you a detailed description of Ajax in the ReadyState (status value) and status (status code) issues, the specific content as follows:
var getxmlhttprequest = function () {
try{
//main browser
Improve page loading speed for high parallel loading of script resources .. we may need to dynamically load scripts... one unavoidable method is to use head. appendchild (SCRIPT); because this method can directly cross-origin.
However, sometimes
First look at the following section of code, and then give you a detailed introduction, Ajax in the readystate (status value) and status (status code), the specific content is as follows:var getxmlhttprequest = function () {try{//main browser
var getxmlhttprequest = function () { try{ ///Mainstream browser provides XMLHttpRequest object return new XMLHttpRequest (); } catch (E) { ///low version of IE browser does not provide XMLHttpRequest object, IE6 below
varGetxmlhttprequest =function () { Try{ //XMLHttpRequest objects are available in mainstream browsers return NewXMLHttpRequest (); }Catch(e) {//The lower version of IE does not provide XMLHttpRequest objects, IE6 the following
var getxmlhttprequest = function () { try{ ///Mainstream browser provides XMLHttpRequest object return new XMLHttpRequest (); } catch (E) { ///low version of IE browser does not provide XMLHttpRequest object, IE6 below
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.